﻿<script id="tpl-tttt" type="text/html">
    <div class="form-group">
        <div id="rowTTTT" style="display:none"/>
        <div class="col-md-1" style="width:9%">
            <div class="row">
                <label class="col-md-2 control-label">Lần</label>
                <div class="col-sm-8">
                    <input type="text" maxlength="2" class="solan-tttt form-control" readonly="readonly" >
                </div>
            </div>
        </div>
        <div class="col-md-3" style="width:20%">
            <div class="row">
                <label class="col-md-3 control-label">Ngày:</label>
                <div class="col-sm-9">
                    <input type="text" class="dpNgayThanhToan form-control" placeholder="Ngày" readonly="readonly">
                </div>
            </div>
        </div>

        <div class="col-md-4">
            <div class="row">
                <label class="col-md-3 control-label">Số tiền:</label>
                <div class="col-sm-9">
                    <input type="text" class="tttt-sotien form-control text-right tip" data-placement="top">
                </div>
            </div>
        </div>


        <div style="width:29%" class="col-md-3">
            <div class="row">
                <label class="col-md-5 control-label">Ngày DKXHĐ:</label>
                <div class="col-sm-6">
                    <input type="text" class="dpNgayDKXHĐ form-control" placeholder="Ngày DKXHĐ" readonly="readonly">
                </div>
            </div>
        </div>

        <div class="col-md-1">
            <div class="row">
                <div class="col-sm-1">
                    <!--<input class="btn btn-danger  btn-xs btn-delete-tttt" style=" margin-left: 22px; width: 55px;" value="Xóa">-->
                    <button class="btn btn-danger  btn-xs btn-icon btn-delete-tttt " type="button">
                        <i class="icon-remove"></i>
                    </button>
                </div>
            </div>
        </div>
    </div>
</script>

<script id="tpl-tttt-edit" type="text/html">
    {{SolanTT}}
    <div class="form-group">
        <div id="rowTTTT" style="display:none">{{id}}</div>
        <div class="col-md-1" style="width:9%">
            <div class="row">
                <label class="col-md-2 control-label">Lần</label>
                <div class="col-sm-8">
                    <input type="text" maxlength="2" class="solan-tttt form-control" readonly="readonly" value="">
                </div>
            </div>
        </div>
        <div class="col-md-3" style="width:20%">
            <div class="row">
                <label class="col-md-3 control-label">Ngày:</label>
                <div class="col-sm-9">
                    <input type="text" class="dpNgayThanhToan form-control" placeholder="Ngày" value="{{Ngay}}" readonly="readonly">
                </div>
            </div>
        </div>

        <div class="col-md-4">
            <div class="row">
                <label class="col-md-3 control-label">Số tiền:</label>
                <div class="col-sm-9">
                    <input type="text" class="tttt-sotien form-control text-right enable-control tip" value="{{SoTien}}" data-placement="top">
                </div>
            </div>
        </div>


        <div style="width:29%" class="col-md-3">
            <div class="row">
                <label class="col-md-5 control-label">Ngày DKXHĐ:</label>
                <div class="col-sm-6">
                    <input type="text" class="dpNgayDKXHĐ form-control" placeholder="Ngày DKXHĐ" value="{{NgayDKXHD}}" readonly="readonly">
                </div>
            </div>
        </div>

        <div class="col-md-1 visible-control">
            <div class="row">
                <div class="col-sm-1">
                    <!--<input class="btn btn-danger  btn-xs btn-delete-tttt" style=" margin-left: 22px; width: 55px;" value="Xóa">-->
                    <button class="btn btn-danger  btn-xs btn-icon btn-delete-tttt " type="button">
                        <i class="icon-remove"></i>
                    </button>
                </div>
            </div>
        </div>
    </div>
    {{SolanTT}}
    {{^SolanTT}}
    {{/SolanTT}}
</script>

<script id="tpl-tr-chitiet-edit" type="text/html">
    {{NoiDungHD}}
<tr>
    <td class="cls-id" style="display:none">{{id}}</td>
    <td class="cls-nhanhang">{{TenNhanHang}}</td>
    <td class="cls-nhomnganh">{{TenNhomNganh}}</td>
    <td class="cls-hinhthucquangcao">{{TenHinhThucQuangCao}}</td>
    <td class="cls-loaisp">{{TenSanPham}}</td>
    <td class="cls-websitetag">{{TenTag}}</td>
    <td class="cls-website">{{TenWebSite}}</td>
    <td class="cls-chuyenmuc">{{TenChuyenMuc}}</td>
    <td class="cls-banner">{{TenBanner}}</td>
    <td class="cls-loaibanner">{{LoaiBanner}}</td>
    <td class="cls-solan">{{SoLan}}</td>
    <td class="cls-donvi">{{TenDonViTinh}}</td>
    <td class="cls-giatien">{{GiaTien}}</td>
    <td class="cls-ckp">{{ChietKhauP}}</td>
    <td class="cls-giatri">{{GiaTri}}</td>
    <td class="cls-cktrianp">{{CKTriAnP}}</td>
    <td class="cls-gtcktrian">{{GiaTrCKTriAn}}</td>
    <td class="cls-tongckp">{{TongChietKhauP}}</td>
    <td class="cls-gtck">{{GiaTriCK}}</td>
    <td class="cls-thanhtiensauck">{{ThanhTienSauCK}}</td>
    <td class="cls-tylehoahongp">{{TyLeHoaHongP}}</td>
    <td class="cls-gthoahong">{{GiaTriHoaHong}}</td>
    <td class="cls-tylehoahongtrianp">{{TyLeHoaHongTriAnP}}</td>
    <td class="cls-giatrihoahongtrian">{{GiaTriHoaHongTriAn}}</td>
    <td class="cls-km">{{KhuyenMai}}</td>
    <td class="cls-taikhoanadm">{{TenTaiKhoanAdmk}}</td>
    <td class="visible-control">
        <!--<input onclick="QLHD.Table.deleteRow()" class="btn btn-danger  btn-xs btn-delete-row-hd" style="width: 45px" value="Xóa">-->
        <button class="btn btn-danger  btn-xs btn-icon btn-delete-row-hd" type="button">
            <i class="icon-remove"></i>
        </button>
    </td>
</tr>
    {{NoiDungHD}}
    {{^NoiDungHD}}
    {{/NoiDungHD}}
</script>

<script id="tpl-tr-chitiet-addnew" type="text/html">
    <tr>
        <td class="cls-id" style="display:none"></td>
        <td class="cls-nhanhang"></td>
        <td class="cls-nhomnganh"></td>
        <td class="cls-hinhthucquangcao"></td>
        <td class="cls-loaisp"></td>
        <td class="cls-websitetag"></td>
        <td class="cls-website"></td>
        <td class="cls-chuyenmuc"></td>
        <td class="cls-banner"></td>
        <td class="cls-loaibanner"></td>
        <td class="cls-solan"></td>
        <td class="cls-donvi"></td>
        <td class="cls-giatien"></td>
        <td class="cls-ckp"></td>
        <td class="cls-giatri"></td>
        <td class="cls-cktrianp"></td>
        <td class="cls-gtcktrian"></td>
        <td class="cls-tongckp"></td>
        <td class="cls-gtck"></td>
        <td class="cls-thanhtiensauck"></td>
        <td class="cls-tylehoahongp"></td>
        <td class="cls-gthoahong"></td>
        <td class="cls-tylehoahongtrianp"></td>
        <td class="cls-giatrihoahongtrian"></td>
        <td class="cls-km"></td>
        <td class="cls-taikhoanadm"></td>
        <td>
            <!--<input onclick="QLHD.Table.deleteRow()" class="btn btn-danger  btn-xs btn-delete-row-hd" style="width: 45px" value="Xóa">-->
            <button class="btn btn-danger btn-icon  btn-xs btn-delete-row-hd" type="button">
                <i class="icon-remove"></i>
            </button>
        </td>
    </tr>
</script>


<script id="tpl-tr-list" type="text/html">
    {{Data}}
    <tr role="row" class="odd">
        <td class="sorting_1"><a href="/Edit.aspx?HopdongID={{HopDongID}}&pID=2" target="_blank">{{SoHD}}</a></td>
        <td>{{TenNhanSu}}</td>
        <td>{{TenBoPhan}}</td>
        <td>{{TenKhachHang}}</td>
        <td>{{NhanHang}}</td>
        <td class="cls-list-giatrihd">{{GiaTriHD}}</td>
        <td></td>
        <td></td>
        <td class="cls-list-congno">{{GiaTriHD}}</td>
    </tr>
    {{Data}}

</script>

